package com.ruoyi.durian.service;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.durian.domain.LlCoupon;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.durian.domain.vo.CouponGrantVo;

import java.text.ParseException;
import java.util.Date;
import java.util.List;

/**
 * @author lenovo
 * @description 针对表【ll_coupon(优惠券模块-优惠券表)】的数据库操作Service
 * @createDate 2024-07-26 16:17:15
 */
public interface LlCouponService extends IService<LlCoupon> {

    /**
     * 添加编辑优惠券
     *
     * @param llCoupon
     * @return
     */
    AjaxResult saveOrUpdateCoupon(LlCoupon llCoupon);

    /**
     * 删除优惠券
     *
     * @return
     */
    AjaxResult delCoupon(Integer id);

    /**
     * 发放优惠券
     *
     * @param couponGrantVo
     * @return
     */
    AjaxResult grantCoupon(CouponGrantVo couponGrantVo);

    List<LlCoupon> selectList(Integer status);
}
